package com.example.demo.easyexcel.db.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author zjq
 * @version 创建时间：2021-12-17 16:02:16
 */
@Getter
@Setter
@EqualsAndHashCode
@Entity
@Table(name = "teacher_data")
public class TeacherData {
    @ExcelIgnore
    @Column(name = "id")
    @Id
    private Long id;

    @ExcelProperty("姓名")
    @Column(name = "xm")
    private String xm;
    @ExcelProperty("联系电话")
    @Column(name = "lxdh")
    private String lxdh;
}